[CMake] try_compile question

Mark Moll mmoll at cs.rice.edu
Mon Jun 7 13:35:26 EDT 2010


On Jun 7, 2010, at 12:19 PM, Torri, Stephen CIV NSWCDD, W15 wrote:

>> 
>> From: cmake-bounces at cmake.org on behalf of Mark Moll
>> Sent: Mon 6/7/2010 12:57 PM
>> To: cmake at cmake.org
>> Subject: [CMake] try_compile question
>> 
>> /opt/local/bin/c++    -isysroot /Developer/SDKs/MacOSX10.5.sdk -mmacosx-version-min=10.5   -o 
>> CMakeFiles/cmTryCompileExec.dir/CheckSZencoder.cpp.o -c /Users/mmoll/CMakeModules/CheckSZencoder.cpp
>> /Users/mmoll/CMakeModules/CheckSZencoder.cpp:2:19: error: szlib.h: No such file or directory
> 
> It appears you do not have either the include directories set correctly or szlib.h is not installed.


The output shows that szlib.h is correctly found here:
/Users/mmoll/external/sandbox/include

The "INCLUDE_DIRECTORIES ${SZ_INCLUDE}” part of the try_compile command doesn’t seem to work or I don’t understand what it’s supposed to do.

-- 
Mark





More information about the CMake mailing list