- Mar 28, 2008
- Reaction score
I tried to pass the $(DXSDK_DIR) environment variable to include libraries but the CMake got confused about it. So, I went the easy way-a-round by using set(DXSDK_DIR "C:/Program Files (x86)/Microsoft DirectX SDK (June 2010)") to move forward with my first attempt to use the CMake. Didn't want to get stuck on that too long.I mean: The Visual-Studio-Projects 'till now assumed the environment variable
DXSDK_DIRto be set to the correct location on a build machine.
This would look nice and simple if it works:
set(DXSDK_DIR extractFromEnvironmentOrDefault("%DXSDK_DIR%" "C:/Program Files (x86)/Microsoft DirectX SDK (June 2010)"))